
package com.weng.adapter;

/**
 * 适配器类。将设备的接口（{@link FishingBoat}）调整为客户端所需的{@link RowingBoat}接口（{@link Captain}）。
 */
public class FishingBoatAdapter implements RowingBoat {

  private final FishingBoat boat = new FishingBoat();

  @Override
  public final void row() {
    boat.sail();
  }
}
